<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Hoodoo::Logger::Payload</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        <h1>
            <span class="type">Class</span>
            Hoodoo::Logger::Payload
                <span class="parent">&lt;
                    Object
                </span>
        </h1>
        <ul class="files">
            <li><a href="../../../files/lib/hoodoo/logger/logger_rb.html">lib/hoodoo/logger/logger.rb</a></li>
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    <div class="description">
      
<p>Used internally toommunicate details of a log message across the <a
href="../Communicators/Pool.html">Hoodoo::Communicators::Pool</a> mechanism
and through to a log writer. Log writer authors do not need to use this
class; <a href="WriterMixin.html">Hoodoo::Logger::WriterMixin</a> unpacks
it and calls your subclass&#39;s report implementation with individual
parameters for you.</p>

    </div>








    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
        <dt>N</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-c-new">new</a>
              </li>
          </ul>
        </dd>
    </dl>








      <!-- Section attributes -->
      <div class="sectiontitle">Attributes</div>
      <table border='0' cellpadding='5'>
          <tr valign='top' id='attribute-i-code'>
            <td class='attr-rw'>
              [R]
            </td>
            <td class='attr-name'>code</td>
            <td class='attr-desc'><p>Code - see <a
href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-component'>
            <td class='attr-rw'>
              [R]
            </td>
            <td class='attr-name'>component</td>
            <td class='attr-desc'><p>Component - see <a
href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-data'>
            <td class='attr-rw'>
              [R]
            </td>
            <td class='attr-name'>data</td>
            <td class='attr-desc'><p><a href="../Data.html">Data</a> - see <a
href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p></td>
          </tr>
          <tr valign='top' id='attribute-i-log_level'>
            <td class='attr-rw'>
              [R]
            </td>
            <td class='attr-name'>log_level</td>
            <td class='attr-desc'><p>Log level - see <a
href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p></td>
          </tr>
      </table>


    <!-- Methods -->
      <div class="sectiontitle">Class Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-c-new">
              <b>new</b>( log_level:, component:, code:, data: )
            <a href="../../../classes/Hoodoo/Logger/Payload.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Create an instance. Named parameters are:</p>
<dl class="rdoc-list note-list"><dt>log_level
<dd>
<p>See <a href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p>
</dd><dt>component
<dd>
<p>See <a href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p>
</dd><dt><code>code</code>
<dd>
<p>See <a href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p>
</dd><dt><code>data</code>
<dd>
<p>See <a href="../Logger.html#method-i-report">Hoodoo::Logger#report</a>.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/logger/logger.rb, line 345</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>( <span class="ruby-identifier">log_level</span>,, <span class="ruby-identifier">component</span>,, <span class="ruby-identifier">code</span>,, <span class="ruby-identifier">data</span><span class="ruby-operator">:</span> )
  <span class="ruby-ivar">@log_level</span> = <span class="ruby-identifier">log_level</span>
  <span class="ruby-ivar">@component</span> = <span class="ruby-identifier">component</span>
  <span class="ruby-ivar">@code</span>      = <span class="ruby-identifier">code</span>
  <span class="ruby-ivar">@data</span>      = <span class="ruby-identifier">data</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
</div>

    </div>
  </body>
</html>
